<?php


namespace app\admin\business;


class Category {
    public $categoryObj = null;

    public function __construct() {
        $this->categoryObj = new \app\admin\model\Category();
    }

    public function getCategoryList() {
        $tempList = $this->categoryObj->getCategoryList();
        return $tempList;
    }

    public function modCategoryIdByIds($category_id, $ids) {
        $res = $this->categoryObj->modCategoryIdByIds($category_id, $ids);
        return $res;
    }

    public function getArticleCountByCategoryId() {
        $res = $this->categoryObj->getArticleCountByCategoryId();
        return $res;
    }
}